package cn.com.jonpad.demo06_simple_project.controller;

import cn.com.jonpad.demo06_simple_project.bean.ResponseInfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class HelloCtrl {
	@PostMapping("say")
	public ResponseInfo say(@RequestBody Map arg){
		ResponseInfo info = new ResponseInfo();
		info.setResponseBody(arg);
		return info;
	}
}
